package com.xw.demo.mybatis.service.impl;

import com.xw.demo.mybatis.entity.UserTest;
import com.xw.demo.mybatis.mapper.UserTestMapper;
import com.xw.demo.mybatis.service.UserTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiongwei_vendor
 * @date 2021/12/30 17:24
 */
@Service
public class UserTestServiceImpl implements UserTestService {

    @Autowired
    private UserTestMapper userTestMapper;

    public List<UserTest> findUserTestList() {
        return userTestMapper.findObjectList();
    }

    public UserTest getUserTestById(String id) {
        return userTestMapper.getObjectById(id);
    }

    public boolean insertUserTest(UserTest createUserTest) {
        return userTestMapper.insertObject(createUserTest);
    }

}
